home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / tech91.zip / TI619.ASC < prev    next >
Text File  |  1991-08-26  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  619
  9.   VERSION  :  3.5
  10.        OS  :  PC DOS
  11.      DATE  :  August 26, 1991                          PAGE  :  1/2
  12.  
  13.     TITLE  :  Creating and using PAL variables in reports and forms
  14.  
  15.  
  16.  
  17.  
  18.   Using PAL variables in reports and forms is a new feature added
  19.   to Paradox 3.5.  Variables can be placed in a report or form
  20.   while in the report or form design mode.  The steps are as
  21.   follows:
  22.  
  23.           From the Paradox 3.5 main menu, choose {Report} {Change}
  24.           or {Form} {Change}.
  25.  
  26.           Select the appropriate table and report or form number.
  27.  
  28.           Press <F10> and select {Field} {Place} {Calculated}.
  29.  
  30.           You may now type in a memory variable or a calculation
  31.           which uses variables  (eg. VAR where "VAR" is the name of
  32.           the memory variable or VAR * VAR1 where "VAR" and "VAR1"
  33.           are numeric variables involved in a calculation) and
  34.           press <Enter>, then press <F2> to save the file.
  35.  
  36.  
  37.   NOTE: Before printing the report or viewing the form, the memory
  38.   variables used will need to be assigned values:
  39.  
  40.   One way to assign a value to a variable is through a Miniscript.
  41.   For example, here are the steps that are necessary to set a
  42.   variable called "VAR" to the number 400
  43.  
  44.           Press <ALT><F10> to bring up the PAL menu.
  45.  
  46.           Choose {Miniscript} from the PAL menu.
  47.  
  48.           Now type VAR = 400.  The expression will set the memory
  49.           variable called "VAR" to the numeric value 400.
  50.  
  51.  
  52.   NOTE: Variable can also be set to calculations, text values, and
  53.   dates as in the following expressions:
  54.  
  55.           VAR1 = (100+VAR)/1000
  56.  
  57.           VAR2 = "This is a text string"
  58.  
  59.           VAR3 = 12/15/91
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  619
  75.   VERSION  :  3.5
  76.        OS  :  PC DOS
  77.      DATE  :  August 26, 1991                          PAGE  :  2/2
  78.  
  79.     TITLE  :  Creating and using PAL variables in reports and forms
  80.  
  81.  
  82.  
  83.  
  84.   A variable can also be set to a value on a table.  For example,
  85.   if a query with a CALC SUM is run, an Answer table is generated
  86.   with a one field record.  To set the variable to that field in
  87.   the Answer table, move the cursor to the field and do a
  88.   Miniscript with the expression VAR = [].  Before doing so, make
  89.   sure the cursor is in the correct field since [] refers to the
  90.   current field.
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.